package cn.tedu.flowers.mapper;


import cn.tedu.flowers.entity.U;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UMapper {
    @Select("select * from user where username=#{username}")
    U selectByUsername(String username);

    @Insert("insert into user values(null,#{username},#{password},#{nickname})")
    void insert(U u);
}
